<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fm" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'base.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <c:if test="${!requestScope.record.status_name_type eq '出库' }">
    <div style="color:red"> 
    	 <input type="hidden" name="status_name_type" value="${requestScope.record.status_name_type}" />
    	 请选择出库的商品，进行回退！ </div>
    	<div class="button" style="position: relative;left: 500px;top:210px;"><div class="buttonContent">
    	<button type="button" class="close">关闭窗口</button></div></div>
    </c:if>
    <c:if test="${requestScope.record.status_name_type eq '出库' }">
<div class="pageContent">
	<form method="post" action="<%=basePath%>inventory/runback.do" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<p>
				<label>回退时间：</label>
				<input type="text" name="customerreturntime" class="date"  readonly="readonly"/>
			</p>
				
			<p>
				<label>回退原因：</label>
				<input type="text" name="REASON" />
			</p>
			
			<p>
				<label>回退商品：</label>
				<input type="text" name="goodsName" value="${requestScope.record.goodsName}" readonly="readonly"/>
				<input type="hidden" name="goodsId" value="${requestScope.record.goodsId}" />
			     <input type="hidden" name="status_name_type" value="${requestScope.record.status_name_type}" />
			     <input type="hidden" name="typeid" value="${requestScope.record.typeid}" />
			     <input type="hidden" name="current_deptid" value="${requestScope.record.current_deptid}" />
			     <input type="hidden" name="goods_code" value="${requestScope.record.goods_code}" />
			</p>
				
			<p>
			
				<label>出库数量：</label>
				<input type="text" name="out_storage_sum" value="${requestScope.record.out_storage_sum}" readonly="readonly"/>
			</p>
			<p>
				<label>回退数量：</label>
				<input name="sum"  type="text" min="1"  max="${requestScope.record.out_storage_sum}"  />
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit" >提交</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
</c:if>
  </body>

</html>
